<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class UserChangePasswordType extends AbstractType {

    public function buildForm(FormBuilder $builder, array $options) {
        $builder
                ->add('password', 'repeated', array(
                    'type' => 'password',
                    'invalid_message' => 'Las dos contraseñas deben coincidir',
                    'first_name' => 'Contraseña',
                    'second_name' => 'Confirmar',
                    'required' => false
                ))
        ;
    }

    public function getName() {
        return 'UserPerfilType';
    }

}